  public class testJNI 
    {
        static { 

          String libPath="cpluslib";

          System.loadLibrary(libPath);
         }

        public native static int get();
        public native static void set(int i);
        public static void main(String[] args)
       {
           testJNI test = new testJNI();
           test.set(999999);
           System.out.println(test.get());
       }
    }
